/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package bkcad;

import java.util.Scanner;

/**
 * class default, public, private, protected
 * @author hoangpt
 */
class Mini {
  /**
   * contructor
   */
  public Mini() {
  }

  /**
   * Input and find minimum
   */
  void inputfindMinimum() {
    Scanner scan = new Scanner(System.in); //keyboard read
    
    /**
     * Read from keyboard
     */
    System.out.print("Input a=");
    int a = scan.nextInt();
    System.out.print("Input b=");
    int b = scan.nextInt();
    System.out.print("Input c=");
    int c = scan.nextInt();
    
    /**
     * Install paradigm
     * min = a, if b < min->b=min,...
     */
    int min = a;
    if (b < min) {
      min = b;
    }
    
    if (c < min) {
      min = c;
    }
    
    /**
     * Print min
     */
    System.out.println("Minimum of 3 integer "+a+","+b+","+c+" is: "+min);
  
  }
}
